<template>
  <div class="buycart">
    <div class="title">
      <span>已选商品</span>
      <span>清空</span>
    </div>
    <div class="shop">
      <div class="img">
        <img src="" alt="" />
      </div>
      <div class="name">
        <span></span>
      </div>
      <div class="price">
        <span></span>
        <div>
          <span>-</span>
          <span>1</span>
          <span>+</span>
        </div>
      </div>
    </div>
    <div class="empty">
      <span>购物车空空如也,去逛逛！</span>
    </div>
  </div>
</template>

<script>
import { shopcart_list } from "../utils/api";
export default {
  data() {
    return {
      visible: true,
      shopList: [],
    };
  },
  mounted() {
    // shopcart_list().then((res) => {
    //   console.log(res.data);
    // });
  },
};
</script>

<style lang='scss' scoped>
.buycart {
  width: 100%;
  height: 100%;
  background: rgba($color: #000000, $alpha: 0.3);
  opacity: 0.5;
  position: fixed;
  top: 0;
  .title {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background: white;
    box-sizing: border-box;
    width: 100%;
    position: fixed;
    bottom: 0;
    span {
      color: black;
      font-weight: bold;
    }
  }
}
</style>